Gadget View
A custom WebView subclass designed to display "gadgets," which are typically web-based applications or content modules.
GadgetView
configures a WebView
with specific settings for optimal performance and compatibility with web content, including JavaScript execution, plugin support, and local storage. It interfaces with an external caching library (ren.yale.android.cachewebviewlib.WebViewCacheInterceptorInst
) for custom caching behavior.
This view implements RevelControl for integration into a broader playback system and OnCommandListener to receive and relay commands to the loaded gadget via JavaScript. It also manages a list of OnCallbackListener instances to communicate events or data from the gadget back to interested components.
Gadgets are loaded from a specific URL pattern involving "shindig.reveldigital.com," with parameters derived from the provided Module object.